package com.news.entity;

import java.sql.Timestamp;

public class Review {
	// 评论id
	private int reviewId;
	// 用户id
	private int userId;
	// 管理员id
	private int adminId;
	// 新闻id
	private int newsId;
	// 评论详细内容
	private String reviewDetails;
	// 评论日期
	private Timestamp reviewDate;

	// get和set方法
	public int getReviewId() {
		return reviewId;
	}

	public void setReviewId(int reviewId) {
		this.reviewId = reviewId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getAdminId() {
		return adminId;
	}

	public void setAdminId(int adminId) {
		this.adminId = adminId;
	}

	public int getNewsId() {
		return newsId;
	}

	public void setNewsId(int newsId) {
		this.newsId = newsId;
	}

	public String getReviewDetails() {
		return reviewDetails;
	}

	public void setReviewDetails(String reviewDetails) {
		this.reviewDetails = reviewDetails;
	}

	public Timestamp getReviewDate() {
		return reviewDate;
	}

	public void setReviewDate(Timestamp reviewDate) {
		this.reviewDate = reviewDate;
	}

	// 构造函数
	public Review(int reviewId, int userId, int adminId, int newsId, String reviewDetails, Timestamp reviewDate) {
		super();
		this.reviewId = reviewId;
		this.userId = userId;
		this.adminId = adminId;
		this.newsId = newsId;
		this.reviewDetails = reviewDetails;
		this.reviewDate = reviewDate;
	}

	public Review(int userId, int adminId, int newsId, String reviewDetails, Timestamp reviewDate) {
		super();
		this.userId = userId;
		this.adminId = adminId;
		this.newsId = newsId;
		this.reviewDetails = reviewDetails;
		this.reviewDate = reviewDate;
	}

	public Review() {
		super();
	}

	public Review(int reviewId, int userId, int adminId, int newsId) {
		super();
		this.reviewId = reviewId;
		this.userId = userId;
		this.adminId = adminId;
		this.newsId = newsId; 
	}

	// 重写toString方法
	@Override
	public String toString() {
		return "Review [reviewId=" + reviewId + ", userId=" + userId + ", adminId=" + adminId + ", newsId=" + newsId
				+ ", reviewDetails=" + reviewDetails + ", reviewDate=" + reviewDate + "]";
	}
}
